<%@page import="org.apache.struts2.ServletActionContext"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>  
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>订餐系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="订餐系统">
	<link rel="stylesheet" type="text/css" href="css/styles.css">
	<script src="js/jquery-1.6.2.min.js" type="text/javascript"></script>
	<script src="js/bookdinner.js" type="text/javascript"></script>
	<script src="js/jquery-ui-1.8.20.custom.min.js" type="text/javascript"></script>
  </head>
  
  <body>
  <s:if test="manager!=null && restaurant!=null">
  	餐馆名字：<s:property value="manager.name"/><br />
  	老板名字：<s:property value="restaurant.name"/><br />
  	电话：<s:property value="manager.phoneNumber" /><br />
  	好评：<s:property value="restaurant.goodRepNum"/>
  	中评：<s:property value="restaurant.middleRepNum"/>
  	差评: <s:property value="restaurant.badRepNum"/><br/>
  	<s:if test="manager.star.equals(true)" >
  	 星级餐馆<br/>
  	</s:if>
  	<%String basepath = request.getContextPath(); %>
  	<s:if test="restaurant.imgPath==null||restaurant.imgPath.equals('')">
  		<img alt="restaurant" src="<%=basepath%>/img/restaurant/restaurant.jpg" width="220" height="160"/>
  	</s:if>
  	<s:else>
  		<img alt="restaurant" src='<s:property value="imgSrcString"/>' width="220" height="160"></img>
  	</s:else>
  	<input type="button" value="修改" /><br/>
  	<s:form action="restaurant!upload.action" enctype="multipart/form-data" method="post">
  		<s:file class="upload" name="upload"  />
		<s:submit class="upload" value="上传" /><br />
  	</s:form>
  </s:if>
   <input type="button" value="添加菜单" />
   <hr/>
   
   
   
  </body>
</html>
